package com.heihei.imgpreview.dto;

import java.util.ArrayList;
import java.util.List;

/**
 *  存储一行图片DTO
 *
 * @version 1.0
 * @since JDK1.8
 * @author duanhengfei
 * @date 2021年01月29日 16:15:10
 */
public class LineDTO {
    /** 行高 */
    private Integer lineHeight;
    /** 这行的图片信息List */
    private List<ImgInfoDTO> imgInfoList;

    public Integer getLineHeight() {
        return lineHeight;
    }

    public void setLineHeight(Integer lineHeight) {
        this.lineHeight = lineHeight;
    }

    public List<ImgInfoDTO> getImgInfoList() {
        return imgInfoList;
    }

    public void setImgInfoList(List<ImgInfoDTO> imgInfoList) {
        this.imgInfoList = imgInfoList;
    }


    public static LineDTO initializeLineDTO(){
        LineDTO currLine = new LineDTO();
        currLine.setLineHeight(0);
        currLine.setImgInfoList(new ArrayList<>());
        return currLine;
    }
}